|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectj3deditor.bin.hierarchy.Vertex
j3deditor.bin.hierarchy.VirtualVertex
public class VirtualVertex
Represents a vertex that contains its own vertex data.
| Field Summary |
|---|
| Fields inherited from class j3deditor.bin.hierarchy.Vertex |
|---|
COORDINATE_VERTEX_STATE, HIDDEN, inUse, NORMAL, SELECTED, TEXTURE_VERTEX_STATE, TRANSFORMABLE |
| Constructor Summary | |
|---|---|
protected |
VirtualVertex(J3DeGeometryArray g,
float x,
float y,
float z,
int index)
Creates an instance of VirtualVertex with the specified coordinates and
initializes its components which are required by J3DeGeometryArray. |
protected |
VirtualVertex(J3DeGeometryArray g,
int index)
Creates an instance of VirtualVertex and
initializes its components which are required by J3DeGeometryArray. |
protected |
VirtualVertex(J3DeGeometryArray g,
javax.vecmath.Point3f loc,
int index)
Creates an instance of VirtualVertex with the specified coordinates and
initializes its components which are required by J3DeGeometryArray. |
protected |
VirtualVertex(Vertex vertex)
Creates an instance of VirtualVertex and copies
all vertex data from the specified vertex to this vertex. |
| Method Summary | |
|---|---|
float[] |
getColor()
Returns the color of this vertex. |
javax.vecmath.Point3f |
getCoordinate()
Returns the positional coordinates of this vertex. |
float[] |
getCoordinates()
Returns the positional coordinates of this vertex (X, Y, Z). |
javax.vecmath.Vector3f |
getNormal()
Returns the normal vector of this vertex. |
float |
getZ()
Returns the Z-coordinate of this vertex. |
float |
getTex(int axis,
int texCoordSet)
Returns a texture coordinate of this vertex in the specified texture coordinate set. |
float[] |
getTexCoordinates(int texCoordSet)
Returns texture coordinates of this vertex in the specified texture coordinate set. |
float |
getX()
Returns the X-coordinate of this vertex. |
float |
getY()
Returns the Y-coordinate of this vertex. |
void |
setColor(float[] color)
Sets the color of this vertex. |
void |
setCoordinate(javax.vecmath.Point3f coordinates)
Sets the positional coordinates of this vertex. |
void |
setCoordinates(float[] coordinates)
Sets the positional coordinates of this vertex. |
void |
setNormal(javax.vecmath.Vector3f normal)
Sets the normal vector of this vertex. |
void |
setZ(float z)
Sets the Z coordinate of this vertex. |
void |
setTex(float coordinate,
int axis,
int texCoordSet)
Sets a texture coordinate of this vertex. |
void |
setTexCoordinates(float[] coordinates,
int texCoordSet)
Sets the texture coordinates of this vertex. |
void |
setX(float x)
Sets the X coordinate of this vertex. |
void |
setY(float y)
Sets the Y coordinate of this vertex. |
void |
translate(float[] xyz)
Translates this vertex. |
void |
translateZ(float z)
Changes the Z coordinate of this vertex. |
void |
translateTex(float[] trans,
int texCoordSet)
Changes texture coordinates of this vertex. |
void |
translateX(float x)
Changes the X coordinate of this vertex. |
void |
translateY(float y)
Changes the Y coordinate of this vertex. |
| Methods inherited from class j3deditor.bin.hierarchy.Vertex |
|---|
equals, getAlpha, getGeometry, getIndex, getRGB, getState, set, setAlpha, setData, setIndex, setRGB, setState, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected VirtualVertex(J3DeGeometryArray g,
int index)
VirtualVertex and
initializes its components which are required by J3DeGeometryArray.
g - J3DeGeometryArrayindex - the index of this vertex
protected VirtualVertex(J3DeGeometryArray g,
javax.vecmath.Point3f loc,
int index)
VirtualVertex with the specified coordinates and
initializes its components which are required by J3DeGeometryArray.
g - J3DeGeometryArrayloc - positional coordinatesindex - the index of this vertex
protected VirtualVertex(J3DeGeometryArray g,
float x,
float y,
float z,
int index)
VirtualVertex with the specified coordinates and
initializes its components which are required by J3DeGeometryArray.
g - J3DeGeometryArrayx - X coordiantey - Y coordiantez - Z coordianteindex - the index of this vertexprotected VirtualVertex(Vertex vertex)
VirtualVertex and copies
all vertex data from the specified vertex to this vertex.
vertex - vertex which data will be copied to this vertex| Method Detail |
|---|
public float[] getCoordinates()
getCoordinates in class Vertexpublic float[] getTexCoordinates(int texCoordSet)
getTexCoordinates in class VertextexCoordSet - texture coordinate set
public float getTex(int axis,
int texCoordSet)
getTex in class Vertexaxis - coordinate axis: S, T, R or QtexCoordSet - texture coordinate set
public float getX()
getX in class Vertexpublic float getY()
getY in class Vertexpublic float getZ()
getZ in class Vertexpublic void setCoordinates(float[] coordinates)
setCoordinates in class Vertexcoordinates - new position of this vertex
public void setTexCoordinates(float[] coordinates,
int texCoordSet)
setTexCoordinates in class Vertexcoordinates - new texture coordinatestexCoordSet - texture coordinate setpublic void setX(float x)
setX in class Vertexx - new X coordinatepublic void setY(float y)
setY in class Vertexy - new Y coordinatepublic void setZ(float z)
setZ in class Vertexz - new Z coordinatepublic void translate(float[] xyz)
translate in class Vertexxyz - change of position on each axis
public void translateTex(float[] trans,
int texCoordSet)
translateTex in class Vertextrans - change of coordinates on S and T axistexCoordSet - texture coordinate setpublic void translateX(float x)
translateX in class Vertexx - change of position on X axispublic void translateY(float y)
translateY in class Vertexy - change of position on Y axispublic void translateZ(float z)
translateZ in class Vertexz - change of position on Z axispublic javax.vecmath.Point3f getCoordinate()
getCoordinate in class Vertexpublic javax.vecmath.Vector3f getNormal()
getNormal in class Vertexpublic void setNormal(javax.vecmath.Vector3f normal)
setNormal in class Vertexnormal - normal vectorpublic void setCoordinate(javax.vecmath.Point3f coordinates)
setCoordinate in class Vertexcoordinates - new position of this vertexpublic float[] getColor()
getColor in class Vertexpublic void setColor(float[] color)
setColor in class Vertexcolor - R, G and B if COLOR_3COLOR_3
public void setTex(float coordinate,
int axis,
int texCoordSet)
setTex in class Vertexcoordinate - new texture coordinateaxis - coordinate axis: S, T, R or QtexCoordSet - texture coordinate set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||